package com.yue.mytest.pattern;

import java.util.Arrays;
import java.util.List;

/**
 * 功能描述: TODO <br/>
 * 创建时间: 2016/10/26<br/>
 *
 * @author QiuYang
 */
public class PathTest {
    public static void main(String[] args) {
//        String pathPattern = "/[^.!,?;\"'<>()\\[\\]{}\\s\\x7F-\\xFF]*(?:[.!,?]+[^.!,?;\"'<>()\\[\\]{}\\s\\x7F-\\xFF]+)*";
//
//        System.out.println("www.ipalmap.com".matches(pathPattern));
//
//        System.out.println("false".matches("false|true"));

//        test();

        test2();
    }

    public static void test(){
        String pattern = "^[A-Za-z][A-Za-z|_]*$";
        System.out.println("_".matches(pattern));
    }

    public static void test1(){
        String[] strs = {"123", "456", "789"};
        List<String> strList = Arrays.asList(strs);
    }

    public static void test2(){
//        "!/^[.]|[\\u4e00-\\u9eff]"
        String pattern = "^[a-zA-Z0-9_]+$";
        System.out.println("fa".matches(pattern));

    }
}
